const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    // publicPath:'/',
    devServer: {
        proxy: {
            '/api': {
                target: 'http://101.43.149.52:8081',
                // target: 'http://localhost:8081',
                websocket: false,   //开启ws, 如果是http代理此处可以不用设置
                changeOrigin: true, //是否允许跨域
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
})
